package cn.rongdao.jrkabao.model.login;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2018/4/23
 */

public class InviteCodeNecessaryModel extends BaseKaMaoModel {

    public static InviteCodeNecessaryModel getInstance() {
        return getPresent(InviteCodeNecessaryModel.class);
    }

    public void execute(Observer<String> observer) {
        Observable<String> observable = mServletApi.isCodeNecessary(mParams).map(new HttpFunction<String>());
        toSubscribe(observable, observer);
    }
}
